{extend name="admin/layout" /}
{block name="main"}
<div class="row">
    <div class="col-md-offset-3 col-md-6">
        <div class="panel">
            <div class="panel-heading">
                <i class="icon-reorder"></i>设置元宝兑换比例
            </div>
            <div class="panel-body">
                <form method="post" class="form-horizontal">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">普通用户</label>
                        <div class="col-sm-10">
                            <div class="input-group">
                                <div class="input-group-addon">1 元宝</div>
                                <div class="input-group-addon"> =</div>
                                <input type="text" name="rate_vip0" value="{:config('zz_rate_vip0')}"
                                       class="form-control">
                                <div class="input-group-addon">元</div>
                            </div>
                        </div>
                    </div>
                    {for start="1" end="9"}
                    <div class="form-group">
                        <label class="col-sm-2 control-label">VIP{$i}</label>
                        <div class="col-sm-10">
                            <div class="input-group">
                                <div class="input-group-addon">1 元宝</div>
                                <div class="input-group-addon"> =</div>
                                <input type="text" name="rate_vip{$i}" value="{:config('zz_rate_vip'.$i)}"
                                       class="form-control">
                                <div class="input-group-addon">元</div>
                            </div>
                        </div>
                    </div>
                    {/for}
                    <div class="form-group">
                        <label class="col-sm-2 control-label">站长</label>
                        <div class="col-sm-10">
                            <div class="input-group">
                                <div class="input-group-addon">1 元宝</div>
                                <div class="input-group-addon"> =</div>
                                <input type="text" name="rate_vip9" value="{:config('zz_rate_vip9')}"
                                       class="form-control">
                                <div class="input-group-addon">元</div>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button class="btn btn-primary" type="submit">保存配置</button>
                            <button class="btn btn-default-outline" type="reset">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}
